package com.company.base;

import com.company.core.validator.group.AddGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @program: planet-company
 * @description: 公众号配置
 * @author: jyz
 * @create: 2019-04-11 21:16
 **/
@Data
@ApiModel(value="GzhModel",description="微信公众号配置")
public class GzhModel {

    @ApiModelProperty("appId")
    @NotNull(message = "secret不能为空",groups = {AddGroup.class})
    private String appId;

    @ApiModelProperty("secret")
    @NotNull(message = "secret不能为空",groups = {AddGroup.class})
    private String secret;

    @ApiModelProperty("token")
    private String token;

    @ApiModelProperty("backUrl")
    private String backUrl;
}
